import { PlayerOptions } from "./../../model/Player";

interface CampDefine {
	playerNum: number;
	name: string;
	value: Array<PlayerOptions["camp"]>;
}
const campDefine: CampDefine[] = [
	{
		playerNum: 5,
		name: "五人局",
		value: ["FZ", "FZ", "ZC", "NJ"]
	},
	{
		playerNum: 8,
		name: "八人局",
		value: ["FZ", "FZ", "FZ", "FZ", "ZC", "ZC", "NJ"]
	}
];

export function provideSuitableCamps(playerNum: number) {
	let result: CampDefine["value"] = [];
	for (let i = 0; i < campDefine.length; i++) {
		if (playerNum === campDefine[i].playerNum) {
			result = campDefine[i].value;
			break;
		}
	}

	return result;
}
